package com.slicktechnologies.shared.common.helperlayer;

import java.io.Serializable;

import com.googlecode.objectify.annotation.Embed;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Index;
import com.simplesoftwares.client.library.appstructure.SuperModel;


/**
 * The PersonInfo Represents the Person's identity and cell no. (will get replaced by contactInfo)
 */
@SuppressWarnings("serial")
@Embed
@Index
public class PersonInfo implements Serializable 
{	
	/***********************************************Entity Attributes****************************************************/
	
	/** The cell number. */
	protected Long cellNumber;
	
	/** The full name. */
	protected String fullName;
	
	/** The id. */
	protected int count;
	
	/***********************************************Default Ctor****************************************************/
	/**
	 * Instantiates a new person info.
	 */
	public PersonInfo() {
		super();
	    fullName="";
	}
	
	/***********************************************Getter/Setter****************************************************/
	/**
	 * Instantiates a new person info.
	 *
	 * @param cellNumber the cell number
	 * @param fullName the full name
	 * @param id the id
	 */
	public PersonInfo(Long cellNumber, String fullName, int id) {
		super();
		this.cellNumber = cellNumber;
		this.fullName = fullName;
		this.count = id;
	}
	
	/**
	 * Gets the cell number.
	 *
	 * @return the cell number
	 */
	public Long getCellNumber() {
		return cellNumber;
	}
	
	/**
	 * Sets the cell number.
	 *
	 * @param cellNumber the new cell number
	 */
	public void setCellNumber(Long cellNumber) {
		this.cellNumber = cellNumber;
	}
	
	/**
	 * Gets the full name.
	 *
	 * @return the full name
	 */
	public String getFullName() {
		return fullName;
	}
	
	/**
	 * Sets the full name.
	 *
	 * @param fullName the new full name
	 */
	public void setFullName(String fullName) {
		if(fullName!=null)
		  this.fullName = fullName.trim();
	}
	
	/**
	 * Gets the id.
	 *
	 * @return the id
	 */
	public int getCount() {
		return count;
	}
	
	/**
	 * Sets the id.
	 *
	 * @param id the new id
	 */
	public void setCount(int id) {
		this.count = id;
	}

	
	
	/********************************************************************************************************************************/

}
